import request from "@/utils/request";

// 查询企业上门回收列表
export function listBizAppointmentCompany(query) {
  return request({
    url: "/biz/bizAppointmentCompany/list",
    method: "get",
    params: query
  });
}

// 查询企业上门回收详细
export function getBizAppointmentCompany(id) {
  return request({
    url: "/biz/bizAppointmentCompany/" + id,
    method: "get"
  });
}

// 新增企业上门回收
export function addBizAppointmentCompany(data) {
  return request({
    url: "/biz/bizAppointmentCompany",
    method: "post",
    data: data
  });
}

// 修改企业上门回收
export function updateBizAppointmentCompany(data) {
  return request({
    url: "/biz/bizAppointmentCompany",
    method: "put",
    data: data
  });
}

// 删除企业上门回收
export function delBizAppointmentCompany(id) {
  return request({
    url: "/biz/bizAppointmentCompany/" + id,
    method: "delete"
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizAppointmentCompany/findMaxSort",
    method: "get"
  });
}
// 导出企业上门回收
export function exportBizAppointmentCompany(query) {
  return request({
    url: "/biz/bizAppointmentCompany/export",
    method: "get",
    params: query
  });
}
